package com.project;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 *
 * @author project
 */
@MapperScan({"com.project.**.mapper"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class AdminApplication {

    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        long startTime = System.currentTimeMillis();
        SpringApplication.run(AdminApplication.class, args);
        System.out.println("-----------------------------------------------------------");
        System.out.println("-----------------------project启动成功----------------------");
        System.out.println("--------------------------耗时：" + ((System.currentTimeMillis() - startTime) / 1000) + "秒-------------------------");
    }
}
